package com.kfm.base.anno;

import java.lang.annotation.Annotation;

public class AnnoTest {

    public static void main(String[] args) {
        Class<Demo> demoClass = Demo.class;

        Annotation[] declaredAnnotations = demoClass.getDeclaredAnnotations();

        System.out.println(declaredAnnotations.length);
        for (Annotation anno : declaredAnnotations){
            System.out.println(anno);
        }
    }
}

